home *** CD-ROM | disk | FTP | other *** search
- <#>
- <#> Sample: Shows menu of all opened window and activates the selected one
- <#>
- <cmds>
-
- <win_enumerate>(vWindow,vNumOfWindows,0)
-
- <if_num>("vNumOfWindows>0")
-
- <begloop>(vNumOfWindows)
-
- <if_str>("vWindow[_vLoopCounter0]!=_vStrEmpty")
- <menu_additem>("vWindow[_vLoopCounter0]")
- <endif>
-
- <endloop>
-
- <menu_show>(-1,-1,vWindowSelected,1,1)
- <if_str>("vWindowSelected!=NO")
-
- <actwin>("vWindowSelected",0,0,"no")
-
- <endif>
-
- <endif>
-